ADP\BaseVersion\Includes\WC\WcCartItemFacade D

Total Complexity 177
Dependencies 16
Dependents 24
Total lines 1,245
Lines of code 567
Logical lines of code 297
Comment lines 333
Methods 73
Properties 29

Methods 73

Method Rating Maintainability Complexity Lines of code
createCommonItem()
C
33 29 102
__construct()
C
38 28 51
generateCartId()
A
51 11 25
addAttribute()
S
58 5 17
createFreeItem()
S
51 4 26
sanitize()
S
52 4 25
createAutoAddItem()
S
52 4 25
createFromProduct()
S
49 3 33
removeAttribute()
S
62 4 11
createItem()
S
67 3 9
getOurData()
S
58 1 17
getClearData()
S
59 1 16
getOriginalPriceWithoutTax()
S
78 2 3
isFreeItem()
S
78 2 3
isAutoAddItem()
S
78 2 3
setDiscounts()
S
74 2 5
setInitialCustomPrice()
S
78 2 3
getInitialCustomPrice()
S
78 2 3
getOriginalPrice()
S
78 2 3
setAutoAddCartItemHash()
S
74 2 5
getOriginalPriceTax()
S
78 2 3
getRegularPriceWithoutTax()
S
78 2 3
getRegularPriceTax()
S
78 2 3
getExactSubtotalTax()
S
74 2 4
setCurrency()
S
74 2 5
setFreeCartItemHash()
S
74 2 5
isImmutable()
S
78 2 3
setHistory()
S
74 2 5
unpackCurrencyObject()
S
69 2 6
wcGetCartItemDataHash()
S
69 2 6
packCurrencyObject()
S
65 2 10
setAssociatedHash()
S
80 1 3
getNewPrice()
S
82 1 3
isVisible()
S
82 1 3
setReplaceWithCoupon()
S
80 1 3
getReplaceWithCoupon()
S
80 1 3
setReplaceCouponCode()
S
80 1 3
getReplaceCouponCode()
S
82 1 3
getCurrency()
S
82 1 3
getQty()
S
82 1 3
getProduct()
S
82 1 3
getAssociatedHash()
S
82 1 3
setQty()
S
80 1 3
getFreeCartItemHash()
S
82 1 3
getData()
S
79 1 3
getAutoAddCartItemHash()
S
82 1 3
setSelectedFreeCartItem()
S
81 1 3
isSelectedFreeCartItem()
S
82 1 3
isAffected()
S
80 1 3
__clone()
S
81 1 3
setNewPrice()
S
76 1 4
isClone()
S
80 1 3
getKey()
S
82 1 3
setThirdPartyData()
S
80 1 3
getSubtotalTax()
S
82 1 3
getOriginalKey()
S
82 1 3
setOriginalKey()
S
81 1 3
getCartItemData()
S
73 1 5
getHistory()
S
82 1 3
withContext()
S
81 1 3
getDiscounts()
S
82 1 3
deleteThirdPartyData()
S
80 1 3
setOriginalPriceWithoutTax()
S
79 1 3
getSubtotal()
S
82 1 3
getThirdPartyData()
S
82 1 3
setOriginalPrice()
S
79 1 3
getVariation()
S
82 1 3
setOriginalPriceTax()
S
79 1 3
getVariationId()
S
82 1 3
setRegularPriceWithoutTax()
S
79 1 3
getProductId()
S
82 1 3
setRegularPriceTax()
S
79 1 3
setKey()
S
81 1 3